#!/bin/bash
# chkconfig: 12345 06 96
# description: This runs the HMC keyboard mapping configuration.
#

# Source function library.
. /etc/init.d/functions

case "$1" in
 start)
	if [ -f /opt/hsc/data/keycfgcheck ]
	then
	   exit 0
	fi

	echo -n "Configuring keyboard mapping"
	touch /var/lock/subsys/kbdConfig
	/opt/hsc/bin/KeyboardCheck 1>/dev/console
	;;
 stop)
 	rm -f /var/lock/subsys/kbdConfig
 	;;
 *)
 	echo "Usage: kbdConfig {start|stop}"
	exit 1
	;;
esac
exit 0

